/**
 * 广告系统模块路由
 */

const bidRouter = {
    path: 'bid',
    component: resolve => require(['@/views/bid/index'], resolve),
    children: [
        {
            path: 'create-bid', //创建竞标
            name: 'createBid',
            component: resolve => require(['@/views/bid/create-bid'], resolve),
            meta: {
                authList: {
                    auth_transform: [],
                    auth_page: ['__auto_by_action:wei4-bid\\edit']
                },
                authResult: {}
            },
        },
        //帮助中心管理
        {
            path: 'help',
            name: 'Help',
            component: resolve => require(['@/views/bid/help/index'], resolve),
            meta: {
                authList: {
                    auth_page: []
                },
                authResult: {}
            },
            redirect: 'help/question-list',
            children: [
                {
                    path: 'question-list',
                    name: 'questionList',
                    component: resolve => require(['@/views/bid/help/question-list'], resolve),
                    meta: {
                        authList: {
                            auth_page: [],
                        },
                        authResult: {}
                    }
                },
                {
                    path: 'question',
                    name: 'Question',
                    component: resolve => require(['@/views/bid/help/question'], resolve),
                    meta: {
                        authList: {
                            auth_page: [],
                        },
                        authResult: {}
                    }
                }
            ]
        },
        {
            path: 'question-add', //添加问题
            name: 'questionAdd',
            component: resolve => require(['@/views/bid/help/question-add'], resolve),
            meta: {
                authList: {
                    auth_transform: [],
                    auth_page: [],
                },
                authResult: {}
            }
        },
        {
            path: 'finance-list', //财务列表
            name: 'financeList',
            component: resolve => require(['@/views/bid/finance-list'], resolve),
            meta: {
                authList: {
                    auth_transform: [],
                    auth_page: ['__auto_by_action:wei4-finance\\finance_system_order\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'supply-list', //校园媒体列表
            name: 'supplyList',
            component: resolve => require(['@/views/bid/supply-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-supply_user\\get_list'],
                    auth_detail: ['__auto_by_action:wei4-resource\\get_list'],
                    auth_send: ['__auto_by_action:wei4-supply_user\\change_money'],
                },
                authResult: {}
            }
        },
        {
            path: 'hire-list', //广告主列表
            name: 'hireList',
            component: resolve => require(['@/views/bid/hire/hire-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-hire_user\\get_list'],
                    auth_set_vip: ['__auto_by_action:wei4-hire_user\\set_vip'],
                    auth_set_status: ['__auto_by_action:wei4-hire_user\\set_status'],
                    auth_set_bond: ['__auto_by_action:student-shop\\set_level'],
                    auth_set_money: ['__auto_by_action:student-hire_user\\set_deposit'],
                    auth_vas_config: ['__auto_by_action:student-shop_vas_money\\set_config'],
                },
                authResult: {}
            }
        },
        { // 增值服务费调用设置
            path: 'vas-money-config',
            name: 'vasMoneyConfig',
            component: resolve => require(['@/views/bid/hire/vas-money-config'], resolve),
            meta: {
                authList: {},
                authResult: {}
            }
        },
        { // 保证金处理
            path: 'set-deposit-money',
            name: 'setDepositMoney',
            component: resolve => require(['@/views/bid/hire/set-deposit-money'], resolve),
            meta: {
                authList: {
                    auth_recharge: ['__auto_by_action:student-shop_deposit\\recharge'],
                    auth_deduct: ['__auto_by_action:student-shop_deposit\\deduct']
                },
                authResult: {}
            }
        },
        { // 增值服务费处理
            path: 'set-vas-money',
            name: 'setVasMoney',
            component: resolve => require(['@/views/bid/hire/set-vas-money'], resolve),
            meta: {
                authList: {
                    auth_verify: ['__auto_by_action:student-shop_vas_money\\audit_apply'],
                    auth_recharge: ['__auto_by_action:student-shop_vas_money\\recharge'],
                    auth_deduct: ['__auto_by_action:student-shop_vas_money\\deduct']
                },
                authResult: {}
            }
        },
        {
            path: 'cantract-list', //合同列表
            name: 'cantractList',
            component: resolve => require(['@/views/bid/cantract-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-hire_contract\\get_list'],
                    auth_refused: ['__auto_by_action:wei4-hire_contract\\refund']
                },
                authResult: {}
            }
        },
        {
            path: 'create-hire', //创建公司
            name: 'createHire',
            component: resolve => require(['@/views/bid/create-hire'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-hire_user\\get', '__auto_by_action:wei4-hire_user\\edit', '__auto_by_action:wei4-hire_user\\add']
                },
                authResult: {}
            }
        },
        {
            path: 'advanced-settings', //高级设置
            name: 'advancedSettings',
            component: resolve => require(['@/views/bid/advanced-settings'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-resource_type\\advanced_edit']
                },
                authResult: {}
            }
        },
        {
            path: 'bid-list', //竞标列表
            name: 'bidList',
            component: resolve => require(['@/views/bid/bid-sponsor-list'], resolve),
            meta: {
                authList: {
                    auth_transform: [],
                    auth_page: ['__auto_by_action:wei4-bid\\get_list']
                },
                authResult: {}
            }
        },
        {
            path: 'sponsor-settlement', //赞助结算列表
            name: 'sponsorSettlement',
            component: resolve => require(['@/views/bid/sponsor-settlement'], resolve),
            meta: {
                authList: {
                    auth_transform: [],
                    auth_page: ['__auto_by_action:wei4-sponsor_activity\\get_hire_sponsor_list']
                },
                authResult: {}
            }
        },
        {
            path: 'bid-member', //竞标人员
            name: 'bidMember',
            component: resolve => require(['@/views/bid/bid-member'], resolve),
            meta: {
                authList: {
                    auth_transform: [],
                    auth_page: ['__auto_by_action:wei4-bid_user_bid\\get_list']
                },
                authResult: {}
            }
        },
        {
            path: 'member-notification', //人员通知
            name: 'memberNotification',
            component: resolve => require(['@/views/bid/member-notification'], resolve),
            meta: {
                authList: {
                    auth_transform: []
                },
                authResult: {}
            }
        },
        {
            path: 'banner-add', //新增轮播图
            name: 'bannerAdd',
            component: resolve => require(['@/views/bid/banner-add'], resolve),
            meta: {
                authList: {
                    auth_transform: [],
                    auth_page: ['__auto_by_action:wei4-base\\banner\\get']
                },
                authResult: {}
            }
        },
        {
            path: 'banner-list', //轮播图列表
            name: 'bannerList',
            component: resolve => require(['@/views/bid/banner-list'], resolve),
            meta: {
                authList: {
                    auth_transform: [],
                    auth_page: ['__auto_by_action:wei4-base\\banner\\get_list']
                },
                authResult: {}
            }
        },
        {
            path: 'resource-type-list', //资源分类列表
            name: 'resourceTypeList',
            component: resolve => require(['@/views/bid/resource-type-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-resource_type\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'supply-account-verify', //身份证审核
            name: 'supplyAccountVerify',
            component: resolve => require(['@/views/bid/supply-account-verify'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-supply_account\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'resource-type-edit', //资源分类编辑
            name: 'resourceTypeEdit',
            component: resolve => require(['@/views/bid/resource-type-edit'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-resource_type\\save', '__auto_by_action:wei4-resource_type\\get'],
                },
                authResult: {}
            }
        },
        {
            path: 'resource-edit', //资源编辑
            name: 'resourceEdit',
            component: resolve => require(['@/views/bid/resource-edit'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-resource\\get'],
                },
                authResult: {}
            }
        },
        {
            path: 'resource-list', //资源列表
            name: 'resourceList',
            component: resolve => require(['@/views/bid/resource-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-resource\\get_list'],
                    auth_pay: ['__auto_by_action:wei4-resource\\pay'], //结算
                },
                authResult: {}
            }
        },
        {
            path: 'resource-schedule', //资源排期
            name: 'resourceSchedule',
            component: resolve => require(['@/views/bid/resource-schedule'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-resource_schedule\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'right-type-list', //权益分类列表
            name: 'rightTypeList',
            component: resolve => require(['@/views/bid/right-type-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-benefit_type\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'right-list', //权益列表
            name: 'rightList',
            component: resolve => require(['@/views/bid/right-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-benefit\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'create-right', //创建权益
            name: 'createRight',
            component: resolve => require(['@/views/bid/create-right'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-benefit\\save'],
                },
                authResult: {}
            }
        },
        {
            path: 'check-list', //账单日志
            name: 'checkList',
            component: resolve => require(['@/views/bid/check-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-hire_user_log\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'vip-set', //会员设置
            name: 'vipSet',
            component: resolve => require(['@/views/bid/vip-set'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-hire_user_vip\\get_config', '__auto_by_action:wei4-hire_user_vip\\set_config'],
                },
                authResult: {}
            }
        },
        {
            path: 'material-tags', //资料库标签列表
            name: 'materialTags',
            component: resolve => require(['@/views/bid/material-tags'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-material_tag\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'material-list', //资料库列表
            name: 'materialList',
            component: resolve => require(['@/views/bid/material-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-material\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'material-add', //资料库添加
            name: 'materialAdd',
            component: resolve => require(['@/views/bid/material-add'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-material\\save'],
                },
                authResult: {}
            }
        },
        {
            path: 'search-log', //前台搜索记录
            name: 'searchLog',
            component: resolve => require(['@/views/bid/search-log'], resolve),
            meta: {
                authList: {
                    auth_page: [],
                },
                authResult: {}
            }
        },
        {
            path: 'sales-leads', //发票列表
            name: 'salesLeads',
            component: resolve => require(['@/views/bid/sales-leads'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:student-hire_user_shop_verify\\get_list'],
                    auth_admin: ['student.hire_user_sales_leads.manager'],
                    auth_verify: ['__auto_by_action:student-hire_user_shop_verify\\verify']
                },
                authResult: {}
            }
        },
        {
            path: 'my-sales-leads', //发票列表
            name: 'mySalesLeads',
            component: resolve => require(['@/views/bid/my-sales-leads'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:student-hire_user_sales_leads\\get_my_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'invoice-list', //发票列表
            name: 'invoiceList',
            component: resolve => require(['@/views/bid/invoice-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-hire_invoice\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'activity-list', //活动列表
            name: 'activityList',
            component: resolve => require(['@/views/bid/activity-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-sponsor_activity\\get_list', '__auto_by_action:wei4-sponsor_activity\\set_status'],
                },
                authResult: {}
            }
        },
        {
            path: 'station-list', //活动广告位列表
            name: 'stationList',
            component: resolve => require(['@/views/bid/station-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-sponsor_activity\\get_adv_config_list', '__auto_by_action:wei4-sponsor_activity\\verify_adv_config'],
                },
                authResult: {}
            }
        },
        {
            path: 'certification-list', //企业认证
            name: 'certificationList',
            component: resolve => require(['@/views/bid/certification-list'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:wei4-hire_certification\\get_list'],
                },
                authResult: {}
            }
        },
        {
            path: 'hire-school-auth', //企业认证
            name: 'hireSchoolAuth',
            component: resolve => require(['@/views/bid/hire-school-auth'], resolve),
            meta: {
                authList: {
                    auth_page: ['__auto_by_action:student-hire_school_auth\\get'],
                },
                authResult: {}
            }
        },
        //企业认证审核
        {
            path: 'hire-auth-examine',
            name: 'hireAuthExamine',
            component: resolve => require(['@/views/bid/hire-auth-examine'], resolve),
            meta: {
                authList: {
                    auth_page: []
                },
                authResult: {}
            }
        },
        //寝室视频列表
        {
            path: 'dorm-video-list',
            name: 'dormVideoList',
            component: resolve => require(['@/views/bid/dorm/dorm-video/index'], resolve),
            meta: {
                authList: {
                    auth_audit: ['__auto_by_action:student-room_series\\submit_audit'],
                    auth_change: ['__auto_by_action:student-room_series\\update'],
                    auth_delete: ['__auto_by_action:student-room_series\\delete'],
                    auth_add_series: ['__auto_by_action:student-room_series\\add'],
                    auth_edit_series: ['__auto_by_action:student-room_series\\update'],
                },
                authResult: {}
            }
        },
        //寝室视频商家列表
        {
            path: 'video-company-list',
            name: 'videoCompanyList',
            component: resolve => require(['@/views/bid/dorm/dorm-video/video-company-list'], resolve),
            meta: {
                authList: {},
                authResult: {}
            }
        },
        //寝室视频审核列表
        {
            path: 'dorm-examine-list',
            name: 'dormExamineList',
            component: resolve => require(['@/views/bid/dorm/dorm-video-examine/dorm-examine-list'], resolve),
            meta: {
                authList: {
                    auth_delete: ['__auto_by_action:student-room_series\\delete'],
                    auth_log: ['__auto_by_action:student-room_series_video\\get_verify_history_list']
                },
                authResult: {}
            }
        },
        //寝室视频审核商家列表
        {
            path: 'dorm-examine-company-list',
            name: 'dormExamineCompanyList',
            component: resolve => require(['@/views/bid/dorm/dorm-video-examine/dorm-examine-company-list'], resolve),
            meta: {
                authList: {
                    auth_delete: ['__auto_by_action:student-room_series\\delete']
                },
                authResult: {}
            }
        },
        //寝室视频上传
        {
            path: 'dorm-video-upload',
            name: 'dormVideoUpload',
            component: resolve => require(['@/views/bid/dorm/dorm-video/dorm-video-upload'], resolve),
            meta: {
                authList: {
                    auth_delete: ['__auto_by_action:student-room_series_video\\delete']
                },
                authResult: {}
            }
        },
        //寝室视频审核详情
        {
            path: 'dorm-video-examine',
            name: 'dormVideoExamine',
            component: resolve => require(['@/views/bid/dorm/dorm-video-examine/dorm-video-examine'], resolve),
            meta: {
                authList: {
                    auth_audit: ['__auto_by_action:student-room_series_video\\audit'],
                    auth_audit_batch: ['__auto_by_action:student-room_series_video\\audit_batch']
                },
                authResult: {}
            }
        },
        // 商家寝室推广进度批次组列表
        {
            path: 'dorm-extension-list',
            name: 'dormExtensionList',
            component: resolve => require(['@/views/bid/dorm/dorm-extension-progress/dorm-extension-list'], resolve),
            meta: {
                authList: {
                    auth_edit: ['__auto_by_action:student-room_series_task\\set']
                },
                authResult: {}
            }
        },
        // 商家寝室推广进度编辑
        {
            path: 'dorm-extension-edit',
            name: 'dormExtensionEdit',
            component: resolve => require(['@/views/bid/dorm/dorm-extension-progress/dorm-extension-edit'], resolve),
            meta: {
                authList: {
                    auth_pause: ['__auto_by_action:student-room_series_task\\pause'],
                    auth_stop: ['__auto_by_action:student-room_series_task\\stop']
                },
                authResult: {}
            }
        },
        // 商家寝室推广进度详情
        {
            path: 'dorm-extension-detail',
            name: 'dormExtensionDetail',
            component: resolve => require(['@/views/bid/dorm/dorm-extension-progress/dorm-extension-detail'], resolve),
            meta: {
                authList: {},
                authResult: {}
            }
        },
        // 商家寝室推广进度 - 推广商家列表
        {
            path: 'extension-company-list',
            name: 'extensionCompanyList',
            component: resolve => require(['@/views/bid/dorm/dorm-extension-progress/extension-company-list'], resolve),
            meta: {
                authList: {},
                authResult: {}
            }
        },
        // 查看学生上传视频详情
        {
            path: 'student-video-detail',
            name: 'studentVideoDetail',
            component: resolve => require(['@/views/bid/dorm/dorm-video/student-video-detail'], resolve),
            meta: {
                authList: {},
                authResult: {}
            }
        },
        // 商家物料清单列表
        {
            path: 'shop-materiel',
            name: 'shopMateriel',
            component: resolve => require(['@/views/bid/dorm/shop-materiel/shop-materiel'], resolve),
            meta: {
                authList: {
                    auth_verify: []
                },
                authResult: {}
            }
        },
        // 商家物料清单详情
        {
            path: 'shop-materiel-info',
            name: 'shopMaterielInfo',
            component: resolve => require(['@/views/bid/dorm/shop-materiel/shop-materiel-info'], resolve),
            meta: {
                authList: {
                    auth_verify: []
                },
                authResult: {}
            }
        },
        // 商家物料清单详情编辑
        {
            path: 'shop-materiel-edit',
            name: 'shopMaterielEdit',
            component: resolve => require(['@/views/bid/dorm/shop-materiel/shop-materiel-edit'], resolve),
            meta: {
                authList: {
                    auth_verify: []
                },
                authResult: {}
            }
        },
        // 学生店铺入驻审核
        {
            path: 'student-shop-verify',
            name: 'studentShopVerify',
            component: resolve => require(['@/views/bid/settle/student-shop-verify'], resolve),
            meta: {
                authList: {
                    auth_verify: []
                },
                authResult: {}
            }
        },
    ]
};

export default bidRouter;
